<?php
include_once 'FlickrPicSync.php';
require_once 'PicasaSync.php';
require_once 'FacebookSync.php';

function  getPicSyncInstance($site_name) {
	switch ($site_name) {
		case "flickr" : return new FlickrPicSync();
		case "picasa" : return new PicasaSync();	
		case "facebook": return new FacebookSync();
		default: return $site_name.'not supported';			
	}
}

?>